<?php
/*
*time：2017-02-24
*author:lisp
*/
class luckydrawModule extends Module{
   /*
	 * 在构造函数中装载所依赖的类或其他文件
	*/
	function __construct() {
		$this->includePhp('luckydraw','luckydraw');
        
	}
	public function call($user,$method,$param){
        switch ($method) {
        	case 'index':
        		luckydraw::index($param);
        		break;
        		case 'save_data':
        		luckydraw::save_data($param);
        		break;
        		case 'test':
        		luckydraw::test($param);
        		break;
                case 'join_now':
                luckydraw::join_now($param);
                break;
                case 'check':
                luckydraw::check($param);
                break;
                case 'show':
                luckydraw::show($param);
                break;
                case 'update_record':
                    luckydraw::update_record($param);
                break;

        	
        	
        }
	}
}

$module = new luckydrawModule();
Module::addModule($module);



